package org.kth.dks.dks_dht;

import java.util.Iterator;
import java.util.List;

import org.kth.dks.DKSObject;


/*
 *This is the interface expected from the DKSDHT.
 */

public interface DHTStorage {

    public void insertItem(long key, DKSObject value);
    
    public DKSObject[] lookupItem(long key);

    public long[] getAllKeys();

    public void removeItem(long key, DKSObject value);

    public void changeItem(long key, DKSObject oldvalue, DKSObject newvalue);

    public Iterator getEntriesIterator();

    public List     getAllItems(int r); 
}
